package com.blog.zip.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface CrossMapper {

    @Insert("insert into b3_solo_cross (oId,crossContent,crossFrom,crossCreated,crossUpdated) values (" +
        "#{id},#{content},#{from},#{created},#{updated})")
    public void addCross(Map<String, Object> payload);

    @Select("select * from b3_solo_cross")
    public List<Map<String, Object>> getCross();

    @Select("delete from b3_solo_cross where oId = #{id}")
    public void deleteCross(String id);
}
